package vsvm.math.statistics.distributions;

import org.apache.commons.math.distribution.NormalDistributionImpl;

public class NormalDistribution extends NormalDistributionImpl{
	
	public double m = 0;
	public double sigma = 1;
	
	public NormalDistribution() {};
	
	public NormalDistribution(double m, double sigma){
		super(m, sigma);
		this.m = m;
		this.sigma = sigma;
	}
	
	public double getDensity(double x){
		
		return Math.exp(-Math.pow((x - m)/sigma, 2)/2)/(sigma*Math.sqrt(2*Math.PI));
		
	}

}
